// Copyright 2019 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// ------------------------------------------------------------------
// Modification history:
// feature: Code style modification
// ------------------------------------------------------------------

#ifndef _EDDS_ENTITYRTPS_TIME_T_H_
#define _EDDS_ENTITYRTPS_TIME_T_H_
#include <ertps/ertps_dll.h>
#include <cmath>
#include <cstdint>
#include <iostream>

#include <deps/common/Time_t.h>

namespace evbs {
namespace ertps {

using Time_t = vbsutil::Time_t;
using Duration_t = vbsutil::Duration_t;

namespace rtps {
using Time_t = vbsutil::xmlparser::Time_t;
}  // namespace rtps
using vbsutil::c_TimeInfinite;
using vbsutil::c_TimeInvalid;
using vbsutil::c_TimeZero;

}  // namespace ertps
}  // namespace evbs

// // defines to avoid the "static initialization order fiasco"
// #define TIME_T_INFINITE_SECONDS (evbs::ertps::Time_t::INFINITE_SECONDS)
// #define TIME_T_INFINITE_NANOSECONDS (evbs::ertps::Time_t::INFINITE_NANOSECONDS)

#endif /* _EDDS_ENTITYRTPS_TIME_T_H_ */
